package com.mikhailenko.transportMVC.service;

import java.util.List;

import com.mikhailenko.transportMVC.exeption.GroupNotFoundExeption;
import com.mikhailenko.transportMVC.model.Group;

public interface GroupService {

    public Group create(Group group);

    public Group delete(int id) throws GroupNotFoundExeption;

    public List<Group> findAll();

    public Group update(Group group) throws GroupNotFoundExeption;

    public Group findById(int id);
    
    public Group findByName(String name);
}
